package com.zxsj.fdk.study.common.exception;

import com.zxsj.fdk.study.common.error.ErrorMsg;
import lombok.Getter;

/**
 * @Description 无需输出堆栈信息的业务层异常(完全可预料的异常 ， 用于可预料的业务逻辑分支的处理)
 * @Author liuyuqing
 * @Date 2020/11/20 15:44
 **/
@Getter
public class NoTraceServiceException extends ApplicationBaseException {

    public NoTraceServiceException() {
    }

    public NoTraceServiceException(ErrorMsg errorMsg) {
        this(errorMsg.getCode(), errorMsg.getMsg());
    }


    public NoTraceServiceException(int code, String msg) {
        super(msg, code);
    }
}
